package com.yuye.test.order;

import org.apache.catalina.LifecycleState;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;

public class A {
    public static void main(String[] args) {
        List<Integer> list = new LinkedList<>();
        list.add(1);
        list.add(2);
        List<Integer> list2 = list.stream().unordered().collect(Collectors.toList());
                System.out.println(list2);
        Collections.reverse(list);
        System.out.println(list);
    }
}
